const Router = require('@koa/router')
const staticController = require('../controller/static.controller')
const { verifyStatic } = require('../middleware/file.middleware')

const router = new Router({ prefix: '/static' })

// 访问头像文件
router.get('/:filename', verifyStatic, staticController.readFile)

module.exports = router